#include <STC89C5xRC.H>
#include "LCD1602.h"
#include "Delay.h"
#include "XPT2046.h"

unsigned int ADValue;

void main()
{
	LCD_Init();
	LCD_ShowString(1,1,"AD1  NTC1  GR1");
          while(1)
         {
              
            ADValue = XPT2046_ReadAD(XPT2046_XP_8);
				LCD_ShowNum(2,1,ADValue,3);
				Delay(10);
				ADValue = XPT2046_ReadAD(XPT2046_YP_8);
				LCD_ShowNum(2,6,ADValue,3);
				Delay(10);
				ADValue = XPT2046_ReadAD(XPT2046_VBAT_8);
				LCD_ShowNum(2,12,ADValue,3);
				Delay(10);
            
         }

}